package com.hz.house.enums;

/**
 * 系统消息类型枚举
 */
public enum SystemMsgEnum {

    COMMENT_PRAISE(1,"/pages/house/comments/list/main","评论点赞"), // id=#{}   id为楼盘id   跳转评论详情

    COMMENT_REPLY(2,"/pages/house/comments/list/main","评论回复"),

    FOCUS(3,null,"关注置业顾问"),

    LPQZ(4,"/pages/house/details_comment/main","楼盘取证"), // houseId=#{}  楼盘id，跳转楼盘详情

    FHJG(5,"/pages/house/rock/results/main","楼盘复核结果"), // path 复核

    JGTZ(6,"/pages/house/details_comment/main","楼盘价格调整"), // houseId=#{}

    YSTZ(7,"/pages/house/details_comment/main","楼盘预售时间调整"), // houseId=#{}

    YHJG(8,"/pages/house/rock/results/main","楼盘摇号结果"),
    
    GOTO_HOMEPAGE(9,null,"竞价我要上首页"),//竞价我要上首页
    VISIT_MYHOMEPAGE_BYSHATE(10,null,"通过分享访问了主页"),//置业顾问首页被分享时访问
	FAQ_NEW_ANSWER(11,"/pages/community/questionDetail/main","问答新回答通知"),//提问有新的回答

	JJCP(12,null,"拒绝测评"),
    JSCP(13,null,"接受测评"),
    WCCP(14,"/pages/house/houseTypeAppraisal/assessmentDetails/main","测评已出"),

    SHAR(15,"/pages/personal/integraldetail/main","分享加分");
	
    private int id;

    private String path;

    private String name;

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPath() {
        return path;
    }

    SystemMsgEnum(int id,String path ,String name) {
        this.id = id;
        this.path = path;
        this.name = name;
    }

    public static SystemMsgEnum getSystemMsgEnum(int id) {

        SystemMsgEnum[] all = SystemMsgEnum.values();
        for(SystemMsgEnum s:all) {
            if(s.getId()==id)
                return s;
        }
        return null;
    }
}
